const HtmlWebpackPlugin = require('html-webpack-plugin');

module.exports = {
  entry: {
    index: ['./src/js/index.js', './src/scss/index.scss'],
	detail: ['./src/js/detail.js', './src/scss/detail.scss'],
	found: ['./src/js/found.js', './src/scss/found.scss'],
	sort: ['./src/js/sort.js', './src/scss/sort.scss'],
	user: ['./src/js/user.js', './src/scss/user.scss'],
  },
  plugins: [
    new HtmlWebpackPlugin({
      template: "./src/html/index.html",
      filename: "index.html",
      chunks: ["index"]
    }),
	new HtmlWebpackPlugin({
	  template: "./src/html/detail.html",
	  filename: "detail.html",
	  chunks: ["detail"]
	}),
	new HtmlWebpackPlugin({
	  template: "./src/html/found.html",
	  filename: "found.html",
	  chunks: ["found"]
	}),
	new HtmlWebpackPlugin({
	  template: "./src/html/sort.html",
	  filename: "sort.html",
	  chunks: ["sort"]
	}),
	new HtmlWebpackPlugin({
	  template: "./src/html/user.html",
	  filename: "user.html",
	  chunks: ["user"]
	}),
  ]
}
